﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetworkSimulator
{
    public class MHA : Routing
    {
        public MHA()
            : base()
        {

        }

        /*******************************************************************
         *  MHA (Minimum hop algorithm)
         *  
         *  CODER:  HOANG CHUNG HIEN
         *  DATE:   27/3/2013
         *  VERSION: 1.0
         *  
         *******************************************************************/

        public override Path  getPath(Request req)
        {
            this.Renew();
            this.removeLinks(req.Bandwidth);

            Path result = BFS(nodes[req.Source], nodes[req.Destination]);

            return result;
        }
        //=============================================================================

    }
}
